<phone:PhoneApplicationPage
    x:Class="LyonMag.CinemaDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,0,0,0" Background="#AD1F15" Orientation="Horizontal">

            <Image x:Name="imgLogo" Source="Assets/Licons/navBar.png" Margin="-60,0,0,0"/>
            <Image Margin="-300,0,0,0" Source="Assets/socialshare.png" x:Name="imgShare" Tap="imgShare_Tap"></Image>
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Visible">
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="300"></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <Image x:Name="img" Height="200" Width="200"></Image>

                <StackPanel Orientation="Vertical">
                    <TextBlock Margin="-120,0,0,0" FontWeight="Bold" FontSize="30" Foreground="Black" x:Name="txtTitle" TextWrapping="Wrap"></TextBlock>
                    <StackPanel Orientation="Horizontal" Margin="0,40,0,0">
                        <TextBlock Text="Réalisé par :" Foreground="Black" Width="110"></TextBlock>
                    <TextBlock x:Name="txtRea" Foreground="Black"></TextBlock>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Genre : " Foreground="Black" Width="70"></TextBlock>
                        <TextBlock x:Name="txtGenre" Foreground="Black"></TextBlock>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Sortie le : " Foreground="Black" Width="90"></TextBlock>
                        <TextBlock x:Name="txtDate" Foreground="Black"></TextBlock>
                    </StackPanel>
                    <Button Background="Gray" Content="Voir les horaires" Foreground="Black" x:Name="btnTheatres" Click="btnTheatres_Click" Margin="-10,0,0,0" BorderThickness="0" Width="217"></Button>
                </StackPanel>   
                
            </StackPanel>
            <StackPanel Grid.Row="1">
                <StackPanel>
                    <TextBlock Text="Acteur" Foreground="Black" FontWeight="Bold"></TextBlock>
                    <TextBlock x:Name="txtActors" Foreground="Black"></TextBlock>
                </StackPanel>
                <StackPanel>
                    <TextBlock Text="Durée" Foreground="Black" FontWeight="Bold"></TextBlock>
                    <TextBlock x:Name="txtDuration" Foreground="Black"></TextBlock>
            </StackPanel>
                <StackPanel>
                    <TextBlock Text="Synopsis" Foreground="Black" FontWeight="Bold"></TextBlock>
                    <TextBlock x:Name="txtSynop" Foreground="Black" TextWrapping="Wrap"></TextBlock>
                </StackPanel>
                    <StackPanel Height="10"></StackPanel>
                <StackPanel>
                        <TextBlock FontWeight="Bold" x:Name="Distributor" Text="Distributeur" Foreground="Black" ></TextBlock>
                    <TextBlock x:Name="txtDistri" Foreground="Black" Margin="0,10,0,0"></TextBlock>
                </StackPanel>
            </StackPanel>
        </Grid>
        </ScrollViewer>
    </Grid>

</phone:PhoneApplicationPage>